-- GENERATED SPELL FOR [Manawraith] --


function spell0_15648(pUnit, Event) --@Arcane Residue,Self--
pUnit:FullCastSpellOnTarget(29109,pUnit)
pUnit:RegisterEvent('Sorts_15648', 595, 1)
end

function spell1_15648(pUnit, Event) --@Faerie Fire,n/a--
pUnit:FullCastSpellOnTarget(25602,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15648', 22000, 1)
end

function Sorts_15648(pUnit, Event)
local choix_sorts_15648 = math.random(0, 1)
if choix_sorts_15648 == 0 then
pUnit:RegisterEvent('spell0_15648', 1, 1)
end
if choix_sorts_15648 == 1 then
pUnit:RegisterEvent('spell1_15648', 1, 1)
end
end

function mob15648_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15648', math.random(1500, 3000), 1)
end

function mob15648_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15648_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15648_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15648, 1, 'mob15648_Action')
RegisterUnitEvent(15648, 2, 'mob15648_Leave')
RegisterUnitEvent(15648, 3, 'mob15648_Kill')
RegisterUnitEvent(15648, 4, 'mob15648_Die')
